package team.first.moiveapiv1.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import team.first.moiveapiv1.domain.Staff;
import team.first.moiveapiv1.dto.RequestStaff;
import team.first.moiveapiv1.vo.ResponseInnerMovie;
import team.first.moiveapiv1.vo.ResponseInnerStaff;

import java.util.List;

/**
 * @Author: HAPPY 
 * @Project_name: project
 * @Package_name: team.first.moiveapiv1.mapper
 * @Date: 2021/11/25 11:01
 * @Description：
 */
@Mapper
public interface StaffMapper extends BaseMapper<Staff> {
    List<ResponseInnerStaff> selectAllStaffsByMovieId(Integer movieId);

    List<ResponseInnerMovie> selectAllMoviesByStaffId(@Param("staffId") Integer staffId, @Param("roleTypeId") Integer roleTypeId);

    List<Staff> selectStaffList(RequestStaff requestStaff);

}